package com.citywy.controller;

import com.citywy.service.ICourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>
 * 课程表 前端控制器
 * </p>
 *
 * @author taray
 * @since 2024-01-19
 */
@Controller
@RequestMapping("/course")
public class CourseController {
    @Autowired
    private ICourseService courseService;

    @RequestMapping("/list")
    public ModelAndView test02(){
        System.out.println("输出:"+courseService.list());
        System.out.println("freemarker使用");
        ModelAndView res = new ModelAndView("/admin/course/course_list");
        res.addObject("uname","李四");
        return res;
    }


}